package grape.workflow.rest.form.form;

import grape.common.rest.form.BaseForm;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * Created by yangwei
 * Created at 2020/7/1 17:37
 */
@Data
@EqualsAndHashCode(callSuper=false)
@ApiModel(value="表单查询对象")
public class FormListForm extends BaseForm {

    /**
     * 启动表单必须
     */
    @ApiModelProperty("流程定义id")
    private String processDefinitionId;

    @ApiModelProperty(value = "流程定义key",notes = "如果是启动表单，定义id或key必须指定一个")
    private String processDefinitionKey;

    /**
     * 任务id，任务表单必须
     */
    @ApiModelProperty("任务id")
    private String taskId;

    /**
     * 是否启动表单，如果不是启动表单就是任务表单
     */
    @NotNull(message = "是否启动表单不能为空")
    @ApiModelProperty(value = "是否启动表单")
    private Boolean isStartForm;
}
